package com.example.aes;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.util.Log;

public class MainActivity extends AppCompatActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);

		TestAes();
	}

	private void TestAes(){
		String iv="1111111111111111";
		String Key = "1111111111111111";

		String enStr ="z46bNGh2WiF+1IUJPM7XjQ==";

		String deStr = null;
		try {
			deStr = AESCBCUtils.decrypt(Key, enStr, iv);
			Log.e("xxxx", deStr);
		} catch (Exception e) {
			e.printStackTrace();
			Log.e("xxxx111", e.getMessage());
		}
	}
}